package _021_10_8

func FindContinuousSequence(sum int) [][]int {
	retData := make([][]int, 0)

	for i := 1; i < sum; i++ {
		_sum := 0
		for j := i; j < sum; j++ {
			_sum += j
			if _sum > sum {
				break
			}
			if _sum == sum {
				temp := make([]int, 0)
				for k := i; k <= j; k++ {
					temp = append(temp, k)
				}
				retData = append(retData, temp)
				break
			}
		}
	}
	return retData
}
